using System;
using System.Collections.Generic;
using System.Text;

namespace Sandia.MVCFramework.Request
{
    /// <summary>
    /// Request parameter that specifies the filename
    /// to import from
    /// </summary>
    public class ImportFilenameRequestParameter: AbstractStandardRequestParameter
    {
        /// <summary>
        /// Human readable name of the parameter
        /// </summary>
        public static string NAME = "ImportFilenameRequestParameter";

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="filename">Filename to initialize the parameter with</param>
        public ImportFilenameRequestParameter(string filename)
            : base()
        {
            this.Data = filename;
        }

        /// <summary>
        /// Constrcutor
        /// </summary>
        public ImportFilenameRequestParameter()
            : base()
        {
        }

        /// <summary>
        /// Initializes name of the request parameter
        /// </summary>
        /// <returns>Name of the request parameter</returns>
        protected override string initName()
        {
            return ImportFilenameRequestParameter.NAME;
        }
    }
}
